<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglibs.jsp"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<meta charset="utf-8">
	<title>通话记录</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" href="${ctxLayui}/layuiadmin/layui/css/layui.css" media="all">
	<link rel="stylesheet" href="${ctxLayui}/layuiadmin/style/myStyle.css" media="all">
</head>
<body>
<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 10px 0 0;">
	<script id="formTpl" type="text/html">

		<div class="layui-form-item-my" >
			<label class="layui-form-label">中心结点</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.nodeId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">座席Id</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.seatId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">记录Id</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.recordId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">通道Id</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.channelId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">坐席类型;1-有吖;2-群鸿</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.seatTypeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">呼叫类型;1-普通来电;2-外呼去电;3-来电转接;4-外呼转接</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.callTypeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">客户电话</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.mobile}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">座席电话</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.seatMobile}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">呼叫时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.callTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">开始时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.beginTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">结束时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.endTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">通话时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.totalTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">等待时长</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.waitTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">客户Id</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.customerId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">用户Id</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.userId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">是否录音</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.isTapeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">录音名称</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.tapeName}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">录音地址</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.tapeUrl}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">坐席类型;1-未获取;2-已获取</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.tapeStatusStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">优秀标识;1-是;2-否</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.excellentFlagStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">是否回拨</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.isBackStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">通话状态;1-未接通;2-已接通;3-排队放弃;4-已留言;5-黑名单</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.callStatusStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">状态;1-正常;2-停用</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.statusStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">创建时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.createTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">修改时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.modifyTimeStr}}</div>
			</div>
		</div>
	</script>
	<div id="form_view"></div>

</div>

<script src="${ctxLayui}/layuiadmin/layui/layui.js"></script>
<script>
	layui.config({
		base: '${ctxLayui}/layuiadmin/'
	}).extend({
		index: 'lib/index'
	}).use(['index', 'form','dict','laytpl','util'], function(){
		var $ = layui.$ ,form = layui.form;
		var dict = layui.dict;
		var laytpl = layui.laytpl;
		var util = layui.util;
		var formData = window.parent.formData;
		formData.seatTypeStr = formData.seatType?dict.showName("seatType",formData?formData.seatType:1):'';
		formData.callTypeStr = formData.callType?dict.showName("callType",formData?formData.callType:1):'';
		formData.callTimeStr = formData.callTime?util.toDateString(formData.callTime):'';
		formData.beginTimeStr = formData.beginTime?util.toDateString(formData.beginTime):'';
		formData.endTimeStr = formData.endTime?util.toDateString(formData.endTime):'';
		formData.totalTimeStr = formData.totalTime?dict.showName("totalTime",formData?formData.totalTime:1):'';
		formData.waitTimeStr = formData.waitTime?dict.showName("waitTime",formData?formData.waitTime:1):'';
		formData.isTapeStr = formData.isTape?dict.showName("isTape",formData?formData.isTape:1):'';
		formData.tapeStatusStr = formData.tapeStatus?dict.showName("tapeStatus",formData?formData.tapeStatus:1):'';
		formData.excellentFlagStr = formData.excellentFlag?dict.showName("excellentFlag",formData?formData.excellentFlag:1):'';
		formData.isBackStr = formData.isBack?dict.showName("isBack",formData?formData.isBack:1):'';
		formData.callStatusStr = formData.callStatus?dict.showName("callStatus",formData?formData.callStatus:1):'';
		formData.statusStr = formData.status?dict.showName("status",formData?formData.status:1):'';
		formData.createTimeStr = formData.createTime?util.toDateString(formData.createTime):'';
		formData.modifyTimeStr = formData.modifyTime?util.toDateString(formData.modifyTime):'';
		var data = formData;
		var getTpl = formTpl.innerHTML,view = document.getElementById('form_view');
		laytpl(getTpl).render(data, function(html){
			view.innerHTML = html;
		});
	})
</script>
</body>
</html>
